<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>练字-笔顺</title>
    <link href="/resource/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/resource/bootstrap/js/bootstrap.min.js" rel="stylesheet">
    <script src="/resource/hanzi-writer/hanzi-writer.min.js"></script>
    <script src="/resource/jquery/jquery-3.7.1.min.js"></script>
    <script src="/resource/hanzi-writer/md5.min.js"></script>
    <script src="/resource/hanzi-writer/BiShun.js"></script>

    <style>
        body {
            margin: 0px;
            padding: 0px;
        }

        #paper-box {
            width: 100%;
            height: 100%;
            padding: 12px 0px;
        }

        .font-box {
            border: 1px solid #DDD;
        }

        .tools-box {
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
        #word-data{
            padding: 5px;
        }
        #word-data a{
            margin: 2px;
        }
    </style>
</head>

<body>
    <div class="container-fluid" id="app">

        <div id="paper-box"> </div>

        <div class="tools-box">
            <div class="container text-center">
                <div class="row">
                    <div class="col">
                        <button id="button-previous" class="btn btn-primary btn-sm">上一个</button>
                    </div>
                    <div class="col">
                        <a href="../index.html" class="btn btn-primary btn-sm">返回</a>
                    </div>
                    <div class="col">
                        <button id="button-next" class="btn btn-primary btn-sm">下一个</button>
                    </div>
                  </div>
            </div>
        </div>
        <br/>
        <div class="card">
            <div class="card-body" id="word-data">

            </div>
        </div>

    </div>

    <script>
        $(document).ready(function () {
            const screenWidth = $(window).width();
            const screenHeight = $(window).height();
            const writerSize = screenWidth > screenHeight ? screenHeight : screenWidth;
            const biShun = new BiShun(writerSize - 30);
            biShun.init();
        });


    </script>
</body>
<!-- https://hanziwriter.org/cn/docs.html -->

</html>